package pyx.crazycards.server.messages;

import java.util.ArrayList;
import java.util.List;

import pyx.crazycards.game.cards.Play;


/**
 * Class wich represents a play move, the server process this play move, wich is often a PUT move or a PASS move 
 * dispatched by the player client. When processed, generates actions (play moves) wich is sent to Clients, updating 
 * the game status.
 * 
 * @see Play
 * @author Abraao Isvi
 *
 */
public class PlayMsg extends CrazyCardsMessage {

	private static final long serialVersionUID = -5513174364685659470L;

	private List<Play> moves = new ArrayList<Play>();
	
	@Override
	public String getName() {
		return "Play";
	}

	public List<Play> getPlays() {
		return moves;
	}

	public void setMoves(List<Play> moves) {
		this.moves = moves;
	}

}
